Carlos Garnacho [Tue, 18 Nov 2014 13:25:51 +0000 (14:25 +0100)]
x11: Fetch vendor/product identifiers for input devices
These are retrieved from XInput device properties.
https://bugzilla.gnome.org/show_bug.cgi?id=740758
Carlos Garnacho [Tue, 18 Nov 2014 13:24:52 +0000 (14:24 +0100)]
device: Add property/getters for vendor/product identifiers
These are a construct only properties, expected to be filled in from
platform specific code.
https://bugzilla.gnome.org/show_bug.cgi?id=740758
Matthias Clasen [Mon, 19 Jan 2015 12:32:31 +0000 (07:32 -0500)]
gtk-demo: Make editable cells demo more robust
When removing all rows, trying to add rows would not work
and throw criticals. This is fallout from a recent change
to insert rows at the right position. Fix this by handling
the 'empty model' case separately.
https://bugzilla.gnome.org/show_bug.cgi?id=743157
Carlos Garnacho [Fri, 16 Jan 2015 12:18:09 +0000 (13:18 +0100)]
scrolledwindow: Don't displace invalidation by the widget allocation
This was left unmodified when GtkScrolledWindow was made a windowed widget.
Displacing here by the widget allocation is not necessary anymore, since
we are invalidating the window set at these coordinates.
This patch is a simplification of a previous one by Timm Bäder.
https://bugzilla.gnome.org/show_bug.cgi?id=742243
Benjamin Otte [Mon, 19 Jan 2015 01:18:59 +0000 (02:18 +0100)]
stylecontext: Fix FALSE/TRUE mixup
Introduced in
e649c8773f0357df19f4e28aabf40a203a39c409. It's obviously
the root node right there.
Matthias Clasen [Mon, 19 Jan 2015 01:01:55 +0000 (20:01 -0500)]
scrolled window: Reduce the hover proximity distance further
Matthias Clasen [Mon, 19 Jan 2015 00:42:58 +0000 (19:42 -0500)]
file chooser: Fix up some focus issues
Better to switch the visible stack child early, since GtkStack
has its own focus handling now.
Lars Uebernickel [Mon, 12 Jan 2015 08:04:11 +0000 (09:04 +0100)]
gtkimagemenuitem: create widget for action icons lazily
GtkImageMenuItem always packs a GtkImage when it is synced with a
related action. This is unnecessary when the action doesn't have an icon
set and results in excess padding when a GtkImageMenuItem is put in a
menu bar (GtkUIManager does this).
Fix this by not creating the GtkImage for icon-less actions.
https://bugzilla.gnome.org/show_bug.cgi?id=742181
Benjamin Otte [Sat, 17 Jan 2015 04:11:40 +0000 (05:11 +0100)]
render: Replace gtk_style_context_get_border/padding()
Use _gtk_style_context_peek_property() instead.
Benjamin Otte [Sat, 17 Jan 2015 03:58:24 +0000 (04:58 +0100)]
render: Get rid of gtk_style_context_get_color()
Use _gtk_style_context_peek_property() instead.
Benjamin Otte [Sun, 18 Jan 2015 00:05:12 +0000 (01:05 +0100)]
Adwaita: Make :active button gradient have 3 stops
Just add a 3rd stop in the place where the gradients for the other
states have a 3rd stop. When running transitions between states, this
avoids cross-fades and instead uses the much faster gradient
transitioning code.
Benjamin Otte [Sun, 18 Jan 2015 21:24:35 +0000 (22:24 +0100)]
stylecontext: Be more graceful when save() isn't matched with restore()
Instead of asserting, just print a g_warning() and try to work around
the problem.
I hope that g_warning() isn't too spammy for people that are hit with
it.
Also clarify the docs that not restore()ing after a save() is a bad
idea.
https://bugzilla.gnome.org/show_bug.cgi?id=743101
Benjamin Otte [Mon, 19 Jan 2015 00:07:49 +0000 (01:07 +0100)]
stylecontext: Explicitly specify root node
When creating the query path, explicitly specify if it's for a root node
or for a child. Relying on gtk_style_context_is_saved() is unreliable
(for example when updating the cache).
Matthias Clasen [Sun, 18 Jan 2015 23:59:43 +0000 (18:59 -0500)]
file chooser: Make search work again
The last round of filechooser redesign work had left
search somewhat dysfunctional. This commit fixes things
up enough that search is once again a working feature
of the file chooser.
Matthias Clasen [Sun, 18 Jan 2015 22:56:07 +0000 (17:56 -0500)]
file chooser: Drop the location label
Bringing us close to the new design.
Matthias Clasen [Sun, 18 Jan 2015 22:39:05 +0000 (17:39 -0500)]
file chooser: Don't show 'Enter Location' in save modes
In these modes, the entry is permanently visible anyway.
Matthias Clasen [Sun, 18 Jan 2015 22:21:14 +0000 (17:21 -0500)]
file chooser: Make Ctrl-L work in recent
Just switch to browse mode when we see Ctrl-L in recent mode.
https://bugzilla.gnome.org/show_bug.cgi?id=660450
Matthias Clasen [Sun, 18 Jan 2015 22:13:12 +0000 (17:13 -0500)]
file chooser: Ensure the path bar is initialized
There are some cases where we can end up showing the path
bar without ever setting a file on it. One example is:
1) Open file chooser
2) Hit ~
3) Hit Ctrl-L
While this is a bit of a workaround, at least it makes sure
that we never end up with an empty space where the path bar
is supposed to be.
Matthias Clasen [Sun, 18 Jan 2015 21:57:21 +0000 (16:57 -0500)]
trivial refactoring
Matthias Clasen [Sun, 18 Jan 2015 21:18:12 +0000 (16:18 -0500)]
file chooser: Make ~ and / work in recent
Complained about in
https://bugzilla.gnome.org/show_bug.cgi?id=743117
Matthias Clasen [Sun, 18 Jan 2015 20:26:49 +0000 (15:26 -0500)]
Fix a typo in the docs
https://bugzilla.gnome.org/show_bug.cgi?id=743037
Matthias Clasen [Sun, 18 Jan 2015 20:24:30 +0000 (15:24 -0500)]
broadway: Only use abstract sockets when they are supported
GIO has a function to check whether abstract sockets are
supported, so use it. This should make broadway work on
Freebsd again.
https://bugzilla.gnome.org/show_bug.cgi?id=742980
Matthias Clasen [Sun, 18 Jan 2015 20:15:37 +0000 (15:15 -0500)]
Make Broadway work on freebsd
It seems that posix_fallocate gives an ENODEV error when
called on an fd opened with shm_open on freebsd. Fix up
the error check to only trigger if we get ENOSPC.
https://bugzilla.gnome.org/show_bug.cgi?id=742980
Matthias Clasen [Sun, 18 Jan 2015 19:28:47 +0000 (14:28 -0500)]
Fine-tune the proximity hovering for scrollbars
Reduce the distance at which we expand the scrollbar,
and add some hysteresis.
Dimitris Spingos [Sun, 18 Jan 2015 20:21:29 +0000 (22:21 +0200)]
Updated Greek translation
Matthias Clasen [Sun, 18 Jan 2015 17:40:32 +0000 (12:40 -0500)]
Remove some outdated references
We shouldn't recommend gtk_widget_modify_bg() or
gtk_style_set_background() anymore.
Christoph Reiter [Wed, 10 Dec 2014 08:36:53 +0000 (09:36 +0100)]
Adjust gtk_status_icon_position_menu() annotation to match GtkMenuPositionFunc again
https://bugzilla.gnome.org/show_bug.cgi?id=674537
https://bugzilla.gnome.org/show_bug.cgi?id=742940
Maks Naumov [Sun, 11 Jan 2015 22:54:27 +0000 (14:54 -0800)]
Fix event->button.y_root when using mouse buttons and dnd canceled
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742785
Maks Naumov [Sun, 11 Jan 2015 23:20:48 +0000 (15:20 -0800)]
Fix save_hot_y init in gtk_drag_get_icon()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742786
Inaki Larranaga Murgoitio [Sat, 17 Jan 2015 16:25:30 +0000 (17:25 +0100)]
Updated Basque language
Matthias Clasen [Sat, 17 Jan 2015 06:03:10 +0000 (01:03 -0500)]
Prefer the Wayland backend
This does not affect X11 sessions, but has the advantage that
we get much more testing of the Wayland backend in Wayland
sessions.
Benjamin Otte [Sat, 17 Jan 2015 01:37:36 +0000 (02:37 +0100)]
inspector: Remove a bunch of unused variables
Benjamin Otte [Mon, 12 Jan 2015 02:57:08 +0000 (03:57 +0100)]
stylecontext: Remove a bunch of return_if_fail()s
They're gonna be in the way when refactoring and we can live without
them.
Benjamin Otte [Tue, 13 Jan 2015 12:45:42 +0000 (13:45 +0100)]
stylecontext: Do not transition from the default style
This gets rid of a bunch of awkward transitions. It's not a perfect
solution to the problem of "should we transition from this state" but it
gets rid of the ugliest offenders.
Lapo Calamandrei [Fri, 16 Jan 2015 17:32:16 +0000 (18:32 +0100)]
Adwaita: scrollbar style refactoring...
...making overlay indicator slider visible on any backgroung
in the process.
Marek Černocký [Wed, 14 Jan 2015 21:50:26 +0000 (22:50 +0100)]
Updated Czech translation
Carlos Garnacho [Wed, 14 Jan 2015 15:59:36 +0000 (16:59 +0100)]
widget: Free the controller list on finalize()
If this is done on dispose(), the widget may be destroyed (and its
controllers list NULLified) within _gtk_widget_run_controllers(),
causing warnings/crashes when it just tried to hop on the next
controllers.
Freeing the controllers here should be a safety net for implementations,
so it also makes sense to do this late. The widgets that choose to
free their controllers on dispose can still do so, and get
_gtk_widget_remove_controller() called for these as an indirect result.
Carlos Garnacho [Wed, 14 Jan 2015 15:41:54 +0000 (16:41 +0100)]
listbox: Free the multipress gesture on finalize
Sveinn í Felli [Tue, 13 Jan 2015 13:44:08 +0000 (13:44 +0000)]
Updated Icelandic translation
Carlos Garnacho [Wed, 14 Jan 2015 15:03:10 +0000 (16:03 +0100)]
event-controller: Chain up on dispose
Stas Solovey [Wed, 14 Jan 2015 12:05:57 +0000 (12:05 +0000)]
Updated Russian translation
Nelson Benítez León [Sat, 10 Jan 2015 20:11:14 +0000 (01:11 +0500)]
gtkplacessidebar: insert bookmark by dnd in correct position
Add needed COLUMN INDEX to "new bookmark" row based on previous
bookmark index plus one.
Fixes bug 742727
Maks Naumov [Sun, 11 Jan 2015 21:34:38 +0000 (13:34 -0800)]
Fix accessible_class->widget_set initialization
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742778
Fran Dieguez [Mon, 12 Jan 2015 21:53:18 +0000 (22:53 +0100)]
Updated Galician translations
Daniel Mustieles [Mon, 12 Jan 2015 11:20:26 +0000 (12:20 +0100)]
Updated Spanish translation
Maks Naumov [Sun, 11 Jan 2015 19:27:37 +0000 (11:27 -0800)]
Properly check result of g_utf8_get_char_validated()
g_utf8_get_char_validated() may return -1 or -2
return type is gunichar(guint32)
Therefore such checks like 'gunichar < 0' or 'gunichar > 0'
are always 'false' or 'true'(except when gunichar == 0).
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742774
Maks Naumov [Sun, 11 Jan 2015 15:01:40 +0000 (07:01 -0800)]
Fix check for 'y' padding in gtk_cell_renderer_set_padding()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742764
Matthias Clasen [Sun, 11 Jan 2015 20:14:55 +0000 (15:14 -0500)]
Remove an unused define
Maks Naumov [Sun, 11 Jan 2015 18:34:56 +0000 (10:34 -0800)]
Properly ignore BadWindow and BadDrawable in get_child_info_handler()
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
https://bugzilla.gnome.org/show_bug.cgi?id=742771
Matthias Clasen [Sun, 11 Jan 2015 02:16:21 +0000 (21:16 -0500)]
Forgotten file
Matthias Clasen [Sun, 11 Jan 2015 02:14:56 +0000 (21:14 -0500)]
HighContrast: Don't set nonexisting style properties
These don't exist, so setting them can't do any good.
Matthias Clasen [Sun, 11 Jan 2015 02:14:02 +0000 (21:14 -0500)]
Adwaita: Don't set nonexisting style properties
These don't exist, so setting them can't do any good.
Matthias Clasen [Sun, 11 Jan 2015 02:12:08 +0000 (21:12 -0500)]
HighContrast: Also fix separators in file chooser buttons
Same fix as for combo box separators.
Matthias Clasen [Sun, 11 Jan 2015 02:09:30 +0000 (21:09 -0500)]
Adwaita: Also fix separators in file chooser buttons
Same fix as for combo box separators.
Iain Lane [Fri, 9 Jan 2015 15:31:08 +0000 (15:31 +0000)]
gtkfilechooserwidget: When using an extra widget, show or hide the filter combo as appropriate
https://bugzilla.gnome.org/show_bug.cgi?id=742653
Matthias Clasen [Sun, 11 Jan 2015 01:28:45 +0000 (20:28 -0500)]
HighContrast: draw combo box separators
Same fix as the previous commit.
Matthias Clasen [Sun, 11 Jan 2015 01:25:56 +0000 (20:25 -0500)]
Adwaita: draw combo box separators
Killing the separator in the button had the unintended side effect
of also killing separators in the popup.
https://bugzilla.gnome.org/show_bug.cgi?id=742704
Matthias Clasen [Sun, 11 Jan 2015 01:14:24 +0000 (20:14 -0500)]
widget-factory: Add a combo box separator example
This shows that combo box separators are currently broken
in Adwaita.
Nelson Benitez Leon [Tue, 22 Oct 2013 10:24:55 +0000 (12:24 +0200)]
GtkTextView: allow to extend text selection with mouse scrollwheel
Fixes bug 710612
Matthias Clasen [Sat, 10 Jan 2015 19:27:52 +0000 (14:27 -0500)]
file chooser: Add some padidng
https://bugzilla.gnome.org/show_bug.cgi?id=742631
Matthias Clasen [Sat, 10 Jan 2015 19:35:45 +0000 (14:35 -0500)]
Forgotten files
Matthias Clasen [Sat, 10 Jan 2015 18:04:10 +0000 (13:04 -0500)]
Adwaita: Fix treeview separators in backdrop
https://bugzilla.gnome.org/show_bug.cgi?id=742702
Benjamin Otte [Sat, 10 Jan 2015 12:58:39 +0000 (13:58 +0100)]
stylecontext: Stop animations on manual invalidation
If a gtk_style_context_invalidate() is called on a widget's style
context (which nobody should ever do, sheesh!) and we're animating, stop
the animations.
Fixes crashers in Nautilus.
Matthias Clasen [Sat, 10 Jan 2015 02:13:10 +0000 (21:13 -0500)]
GtkScrolledWindow: Don't start fading right away
When we get a leave event, we need to remove the over bit,
since we may not get motion events that tell us when we lose
proximity, but we don't have to fade out right away - that
will happen on its on due to inactivity a bit later. Having
the indicator stay visible for a bit feels more relaxed.
Matthias Clasen [Sat, 10 Jan 2015 02:12:00 +0000 (21:12 -0500)]
GtkScrolledWindow: Factor out a constant
Define INDICATOR_CLOSE_DISTANCE instead of hardcoding the same
number of pixels in 4 different places.
Matthias Clasen [Sat, 10 Jan 2015 02:09:22 +0000 (21:09 -0500)]
GtkScrolledWindow: Don't require proximity for track points
These are hard to navigate precisely, so show wide scrollbars
right away.
Matthias Clasen [Sat, 10 Jan 2015 01:52:03 +0000 (20:52 -0500)]
GtkScrolledWindow: Drop device manager complications
We no longer use the presence or absence of particular device
types to determine which scrolling to use.
Matthias Clasen [Sat, 10 Jan 2015 01:33:39 +0000 (20:33 -0500)]
GtkScrolledWindow: Drop a redundant field
The Indicator.enabled field was not carrying any extra information,
so just use priv->use_indicators instead.
Matthias Clasen [Sat, 10 Jan 2015 01:26:07 +0000 (20:26 -0500)]
GtkScrolledWindow: Rename a private field
touch_mode -> use_indicators, more to the point.
Emmanuele Bassi [Sat, 10 Jan 2015 00:07:51 +0000 (00:07 +0000)]
x11/gl: Do not specify the GLX context version
If we use GDK_GL_PROFILE_3_2_CORE we are asking for a core profile
according to the GLX_ARB_create_context_profile extension. For that,
we pass the GLX_CONTEXT_CORE_PROFILE_BIT_ARB value for the
GLX_CONTEXT_PROFILE_MASK_ARB attribute.
The specification for the extension says that:
If the requested OpenGL version is less than 3.2,
GLX_CONTEXT_PROFILE_MASK_ARB is ignored and the functionality
of the context is determined solely by the requested version.
Since we're asking for a core profile, we assume a GL version greater
than or equal to 3.2; thus, we don't need to specify the
GLX_CONTEXT_MAJOR_VERSION_ARB or the GLX_CONTEXT_MINOR_VERSION_ARB
attributes, and instead just rely on whatever version GLX gives us.
This seems to work around a strange issue in Mesa; if we ask for a core
profile and any version > 3.0, we get broken rendering on any shared
context we create.
Matthias Clasen [Fri, 9 Jan 2015 20:28:53 +0000 (15:28 -0500)]
inspector: Don't use GSettings directly
It is not necessary here, and using GtkSettings gives us
a greater chance to not fail e.g. on Windows.
https://bugzilla.gnome.org/show_bug.cgi?id=742664
Matthias Clasen [Fri, 9 Jan 2015 19:44:26 +0000 (14:44 -0500)]
inspector: be careful about gsize vs guint64
Since gsize doesn't work as a typename in a ui file,
we have to be careful not to pass pointers to wrongly
sized variables when getting the guint64 values out
of the model.
https://bugzilla.gnome.org/show_bug.cgi?id=742664
Emmanuele Bassi [Fri, 9 Jan 2015 16:42:55 +0000 (16:42 +0000)]
docs: Add missing quote
The missing " breaks the syntax highlighting of the GtkImageMenuItem
example.
David King [Fri, 9 Jan 2015 14:37:17 +0000 (14:37 +0000)]
docs: Add Since for GtkCellRendererPixbuf:surface
David King [Tue, 8 Apr 2014 15:42:36 +0000 (16:42 +0100)]
docs: Fix some old live.gnome.org URLs
Piotr Drąg [Fri, 9 Jan 2015 13:16:03 +0000 (14:16 +0100)]
Updated POTFILES.skip
Matthias Clasen [Fri, 9 Jan 2015 11:45:51 +0000 (06:45 -0500)]
Fix GTK_OVERLAY_SCROLLING=0
This was broken by the recent more dynamic approach.
Matthias Clasen [Fri, 9 Jan 2015 11:21:37 +0000 (06:21 -0500)]
Fix comment typo
Matthias Clasen [Fri, 9 Jan 2015 05:07:01 +0000 (00:07 -0500)]
inspector: Show object address
This is useful information when running the application
in a debugger.
https://bugzilla.gnome.org/show_bug.cgi?id=742518
Emmanuele Bassi [Fri, 26 Dec 2014 16:04:26 +0000 (16:04 +0000)]
Point to copy/cut/delete named icons in the stock item deprecations
We still use symbolic icons for Copy, Cut, and Delete operations inside
toolbars and some menus, so it's worth pointing to the symbolic icon
names in the deprecation notices.
https://bugzilla.gnome.org/show_bug.cgi?id=741969
Matthias Clasen [Fri, 9 Jan 2015 03:27:47 +0000 (22:27 -0500)]
file chooser: Don't force a scrollbar
No point in showing the scrollbar when it is not needed.
https://bugzilla.gnome.org/show_bug.cgi?id=742343
Timm Bäder [Fri, 26 Dec 2014 22:04:37 +0000 (23:04 +0100)]
gtklabel: Don't accept unhandled mouse buttons
If the pressed mouse button neither triggers a context menu nor
activates a link, set the sequence's state to DENIED.
https://bugzilla.gnome.org/show_bug.cgi?id=742010
Benjamin Otte [Thu, 8 Jan 2015 18:30:19 +0000 (19:30 +0100)]
cssimage: Fix angle computation for gradients to corners
Inaki Larranaga Murgoitio [Thu, 8 Jan 2015 17:32:00 +0000 (18:32 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Thu, 8 Jan 2015 14:41:15 +0000 (15:41 +0100)]
Updated Basque language
Benjamin Otte [Wed, 7 Jan 2015 17:06:59 +0000 (18:06 +0100)]
stylecontext: Handle theme changes for cached styles
We need to clear the cache manually on full revalidates because
_gtk_css_change_for_child() will clear the full revalidation flags.
And then gtk_style_context_update_cache() will not do the right thing
(which is to clear itself).
Benjamin Otte [Wed, 7 Jan 2015 14:44:53 +0000 (15:44 +0100)]
stylecontext: Rename GtkStyleInfo to GtkCssNode
Benjamin Otte [Tue, 6 Jan 2015 11:08:49 +0000 (12:08 +0100)]
stylecontext: update_animating() properly
Because we can switch from animating to non-animating pretty much
anywhere, do the check for animations unconditionally instead of trying
to cram it into the correct if path (and failing).
Benjamin Otte [Tue, 6 Jan 2015 11:08:17 +0000 (12:08 +0100)]
stack: Remove commented out line
It always shows up in my greps and confuses me.
Benjamin Otte [Mon, 5 Jan 2015 23:38:54 +0000 (00:38 +0100)]
stylecontext: Add a parent style cache
We now cache the results of lookups on the parent GtkCssStyle. This
allows sharing styles between widgets (recursively). However, this
only works if the styles can't potentially depend on siblings -
neither directly via sibling selectors or via position pseudo-classes
like :first-child.
Unfortunately, Adwaita currently uses first-child a lot, and in
particular for labels, which are the most common widgets.
The big benefits of this change are both less CPU - due to not needing
to compute styles again - and less memory usage - due to sharing of
the styles between widgets. Here's some nonscientific numbers I
collected while pondering the usefulness of this patch:
glade glade widget
demo demo factory
runtime styles styles
Adwaita before 19.1s 5800 1150
Adwaita now 18.9s 3800 970
Adwaita hacked now 14.5s 3100 910
simple before 11.3s 5800 1150
simple now 10.8s 1300 590
Adwaita: Adwaita as provided by GTK
Adwaita hacked: Adwaita with the first/last-child for GtkLabel removed
simple: A 250 lines simple GTK theme I use for testing
before: This patch not applied
now: this patch applied
glade demo runtime: Starting glade opening a large file and closing it
glade demo styles: GtkCssStaticStyle objects after opening glade with
the large file as per inspector
widget factory styles: GtkCssStaticStyle objects after startup as per
inspector
Benjamin Otte [Mon, 5 Jan 2015 15:13:18 +0000 (16:13 +0100)]
cssstyle: Have a default style
This way we can initialize the default style info with a style and
ddon't need to special case NULL everywhere.
Benjamin Otte [Mon, 5 Jan 2015 04:57:45 +0000 (05:57 +0100)]
stylecontext: Use correct parent on updates
Previously we looked at the save/restore state when determining the
parent. This is wrong in the case where we're updating the cache though.
So we now save the parent in the style info.
Benjamin Otte [Tue, 23 Dec 2014 07:19:39 +0000 (08:19 +0100)]
stylecontext: Fix cache updating
After the parent changes in commit
3a337156d11a86c7a88f1f30a09276fdf6f63008 we need to refresh the cached
styles after the current style. After all, they now depend on the base
style.
Benjamin Otte [Tue, 23 Dec 2014 07:10:30 +0000 (08:10 +0100)]
cssstaticstyle: Handle relevant change
Relevant change is returned from style lookups, so keep is with the
object that holds those values.
Benjamin Otte [Sun, 21 Dec 2014 20:30:51 +0000 (21:30 +0100)]
stylecontext: Use correct parent style for lookups
After
3a337156d11a86c7a88f1f30a09276fdf6f63008 style lookups still used
the parent context's style as the parent style, even though after a
gtk_style_context_save() the root style of the style context is the
proper parent.
Testcase attached.
Benjamin Otte [Sun, 21 Dec 2014 19:26:26 +0000 (20:26 +0100)]
cssnodedeclaration: Store the GType of the node
Benjamin Otte [Wed, 17 Dec 2014 12:30:51 +0000 (13:30 +0100)]
cssstyle: Move function from vfunc to static func
compute_dependencies() is only used internally by GtkCssStaticStyle,
so there's no need to have it elsewhere.
Benjamin Otte [Wed, 17 Dec 2014 12:22:03 +0000 (13:22 +0100)]
cssstaticstyle: Move function
And with that move, GtkCssStaticStyle is immutable.
Benjamin Otte [Wed, 17 Dec 2014 04:52:13 +0000 (05:52 +0100)]
cssstaticstyle: Move function
We want the new() return values to be immutable, so we have to move the
code that modifes them.
Benjamin Otte [Wed, 17 Dec 2014 03:18:44 +0000 (04:18 +0100)]
stylecontext: Refactor update_properties()
It now always returns a new instance.